// 日期格式处理
let monthDate = dateTime => {
  const date = new Date(dateTime)
  return `${date.getFullYear()}-${(date.getMonth() + 1) < 10 ? ('0' + (date.getMonth() + 1)) : (date.getMonth() + 1)}-${date.getDate() < 10 ? ('0' + (date.getDate())) : (date.getDate())}`
}

// 字符串截取
let stringSub = dataTime => {
}

// 保留两个小数点
let twoPoint = point => {
  if (/^\d+$/.test(point)) {
    return `${point}.00`
  } else {
    return point
  }
}

export {monthDate, twoPoint, stringSub}
